home *** CD-ROM | disk | FTP | other *** search
/ Micromanía: 150 Juegos 2010 / 150Juegos_16.iso / Shareware / Shape Smash / shape-smash.swf / scripts / mochi / as3 / MochiCoins.as < prev    next >
Encoding:
Text File  |  2010-05-14  |  3.7 KB  |  125 lines

  1. package mochi.as3
  2. {
  3.    public class MochiCoins
  4.    {
  5.       public static const LOGGED_IN:String = "LoggedIn";
  6.       
  7.       public static const LOGGED_OUT:String = "LoggedOut";
  8.       
  9.       public static const LOGIN_SHOW:String = "LoginShow";
  10.       
  11.       public static const LOGIN_HIDE:String = "LoginHide";
  12.       
  13.       public static const STORE_SHOW:String = "StoreShow";
  14.       
  15.       public static const STORE_HIDE:String = "StoreHide";
  16.       
  17.       public static const PROFILE_SHOW:String = "ProfileShow";
  18.       
  19.       public static const PROFILE_HIDE:String = "ProfileHide";
  20.       
  21.       public static const PROPERTIES_SAVED:String = "PropertySaved";
  22.       
  23.       public static const WIDGET_LOADED:String = "WidgetLoaded";
  24.       
  25.       public static const ITEM_OWNED:String = "ItemOwned";
  26.       
  27.       public static const ITEM_NEW:String = "ItemNew";
  28.       
  29.       public static const STORE_ITEMS:String = "StoreItems";
  30.       
  31.       public static const USER_INFO:String = "UserInfo";
  32.       
  33.       public static const ERROR:String = "Error";
  34.       
  35.       public static const IO_ERROR:String = "IOError";
  36.       
  37.       public static const NO_USER:String = "NoUser";
  38.       
  39.       public static const PROPERTIES_SIZE:String = "PropertiesSize";
  40.       
  41.       private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
  42.       
  43.       public function MochiCoins()
  44.       {
  45.          super();
  46.       }
  47.       
  48.       public static function _rm99() : String
  49.       {
  50.          return MochiServices._rm99();
  51.       }
  52.       
  53.       public static function removeEventListener(param1:String, param2:Function) : void
  54.       {
  55.          _dispatcher.removeEventListener(param1,param2);
  56.       }
  57.       
  58.       public static function _id809(param1:Object = null) : void
  59.       {
  60.          MochiServices._hp652();
  61.          MochiServices._ju656();
  62.          MochiServices.send("coins_showLoginWidget",{"options":param1});
  63.       }
  64.       
  65.       public static function triggerEvent(param1:String, param2:Object) : void
  66.       {
  67.          _dispatcher.triggerEvent(param1,param2);
  68.       }
  69.       
  70.       public static function addEventListener(param1:String, param2:Function) : void
  71.       {
  72.          _dispatcher.addEventListener(param1,param2);
  73.       }
  74.       
  75.       public static function _ec204() : void
  76.       {
  77.          MochiServices.send("coins_hideLoginWidget");
  78.       }
  79.       
  80.       public static function _sm740(param1:Object) : void
  81.       {
  82.          MochiServices.send("coins_saveUserProperties",param1);
  83.       }
  84.       
  85.       public static function _dq553(param1:Object = null) : void
  86.       {
  87.          if(!param1 || typeof param1.item != "string")
  88.          {
  89.             trace("ERROR: showVideo call must pass an Object with an item key");
  90.             return;
  91.          }
  92.          MochiServices._ju656();
  93.          MochiServices.send("coins_showVideo",{"options":param1},null,null);
  94.       }
  95.       
  96.       public static function _mk110(param1:Object = null) : void
  97.       {
  98.          if(!param1 || typeof param1.item != "string")
  99.          {
  100.             trace("ERROR: showItem call must pass an Object with an item key");
  101.             return;
  102.          }
  103.          MochiServices._ju656();
  104.          MochiServices.send("coins_showItem",{"options":param1},null,null);
  105.       }
  106.       
  107.       public static function _cn668() : void
  108.       {
  109.          MochiServices.send("coins_getUserInfo");
  110.       }
  111.       
  112.       public static function _dt467(param1:Object = null) : void
  113.       {
  114.          MochiServices._ju656();
  115.          MochiServices.send("coins_showStore",{"options":param1},null,null);
  116.       }
  117.       
  118.       public static function _bh309() : void
  119.       {
  120.          MochiServices.send("coins_getStoreItems");
  121.       }
  122.    }
  123. }
  124.  
  125.